package com.zxh.okretrofit.entity;

import java.util.List;

/**
 * 列表的基础实体
 * Created by zhangxuehui on 2018/2/6.
 */
public class BaseListEntity<T> {
    private int code;//状态码
    private boolean sucsess;//是否成功
    private String msg;//返回的消息
    private List<T> data;//返回的列表数据

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSucsess() {
        return sucsess;
    }

    public void setSucsess(boolean sucsess) {
        this.sucsess = sucsess;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
